package com.hzd.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * 活动参与用户
 *
 * @author christ
 * @date 2015/10/20
 */
@Entity
public class ActivityUser extends BaseEntity {

    @Id
    private String id;

    @Column(length = 32)
    private String mobile;

    @Column(length = 32)
    private String nickName;

    private String openid;

    private Integer count = 0;

    /**
     * 租金
     */
    private BigDecimal rent;

    @Transient
    private Integer rank;

    public String getId() {
        return id;
    }

    public ActivityUser setId(String id) {
        this.id = id;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public ActivityUser setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getNickName() {
        return nickName;
    }

    public ActivityUser setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public String getOpenid() {
        return openid;
    }

    public ActivityUser setOpenid(String openid) {
        this.openid = openid;
        return this;
    }

    public Integer getCount() {
        return count;
    }

    public ActivityUser setCount(Integer count) {
        this.count = count;
        return this;
    }

    public Integer getRank() {
        return rank;
    }

    public ActivityUser setRank(Integer rank) {
        this.rank = rank;
        return this;
    }

    public BigDecimal getRent() {
        return rent;
    }

    public ActivityUser setRent(BigDecimal rent) {
        this.rent = rent;
        return this;
    }
}
